package abstractdemo;

public class Test {
    public static void main(String[] args) {
        //抽象类不能实例化
        //Person p = new Person();
        //抽象类中可以有构造器，便于子类实例化时调用
        Student s = new Student("小明");
        s.eat();
    }
}
